import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import { Form } from 'vant';

Vue.use(Form);
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  }, {
    path: '/serch',
    name: 'About',
    component: () => import('../views/serch')
  },{
    path: '/mine',
    name: 'About',
    component: () => import('../views/mine')
  },{
    path: '/home',
    component: () => import('../views/Home')
  },{
    path: '/Songdetails',
    component: () => import('../views/Songdetails')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
